﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Master/Admin.Master" AutoEventWireup="true"
    CodeBehind="TrafficList.aspx.cs" Inherits="Besture.UI.TrafficList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <div class="listPage">
        <!--顶部操作按钮开始-->
	<div class="operateBar">
            <ul>
                <li><a href="javascript:grid.SelectRows();" class="operate-all"><s class="icon-gou-red">
                </s>全选</a></li>
                <li><a href="javascript:grid.UnselectRows();" class="operate-cancel"><s class="icon-cancel-yellow">
                </s>取消</a></li>
                <li>
                    <asp:LinkButton ID="lbAllDelete" runat="server" OnClientClick="return confirm('删除后无法恢复，确定删除选中项吗?');"
                        class="operate-delete" OnClick="BtnDelClick"><s class="icon-delete"></s>删除</asp:LinkButton>
                </li>
                <li>
                    <asp:LinkButton ID="lbAdd" runat="server" class="operate-add" OnClick="BtnAddClick"><s class="icon-add-green"></s>添加</asp:LinkButton>
                </li>
            </ul>
        </div>
        <!--顶部操作按钮结束-->
        <cms:ASPxGridView ID="grid" ClientInstanceName="grid" runat="server" Width="99%"
            AutoGenerateColumns="False" KeyFieldName="ID" OnCustomCallback="GridCustomCallback"
            OnRowDeleting="GridRowDeleting">
            <Columns>
                <cms:GridViewCommandColumn ShowSelectCheckbox="true" VisibleIndex="0" Width="50px"
                    FixedStyle="Left">
                    <HeaderTemplate>
                        <input type="checkbox" onclick="grid.SelectAllRowsOnPage(this.checked);" title="全选/全不选"
                            id="chkAll" runat="server" />
                    </HeaderTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                </cms:GridViewCommandColumn>
                <cms:GridViewCommandColumn VisibleIndex="1" Caption="删除" Width="50px" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Center" ButtonType="Image" FixedStyle="Left">
                    <DeleteButton Visible="true" Image-Url="/Admin/Themes/Images/del.gif" Text="删除">
                    </DeleteButton>
                </cms:GridViewCommandColumn>
                <cms:GridViewDataTextColumn Caption="编辑" VisibleIndex="2" Width="50px" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Center" FixedStyle="Left">
                    <DataItemTemplate>
                        <a href="TrafficSet.aspx?id=<%# Eval("ID")%>">
                            <img src="/Admin/Themes/Images/edit.gif" alt="查看编辑" title="查看编辑" /></a>
                    </DataItemTemplate>
                </cms:GridViewDataTextColumn>
                <cms:GridViewDataTextColumn Caption="地点信息" VisibleIndex="3" Width="" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Center" FieldName="Location">
					<Settings AutoFilterCondition="Contains"></Settings>
				</cms:GridViewDataTextColumn>
				<cms:GridViewDataTextColumn Caption="到达方式" VisibleIndex="4" Width="" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Center" FieldName="GettingThere">
					<Settings AutoFilterCondition="Contains"></Settings>
				</cms:GridViewDataTextColumn>
				<cms:GridViewDataTextColumn Caption="排序编号" VisibleIndex="5" Width="" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Center" FieldName="SortID">
					<Settings AutoFilterCondition="Contains"></Settings>
				</cms:GridViewDataTextColumn>
				<cms:GridViewDataDateColumn Caption="创建时间" VisibleIndex="6" Width="" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Center"  FieldName="CreateTime">
					<PropertiesDateEdit DisplayFormatString="{0:yyyy-MM-dd HH:mm:ss}">
					</PropertiesDateEdit>
				</cms:GridViewDataDateColumn>
				
            </Columns>
        </cms:ASPxGridView>
    </div>
</asp:Content>
